Ext.define('pm.view.Personal.Tree' ,{
    extend: 'Ext.tree.Panel',
    alias : 'widget.PersonalTree',

    store: 'PersonalStruct',
    
    columns: [{
        xtype: 'treecolumn',
        text: 'Name',
        dataIndex: 'name',
        width: 150,
        sortable: true
    }, {
        text: 'Description',
        dataIndex: 'email',
        flex: 1,
        sortable: true
    }],

    viewConfig: {
        plugins: {
            ddGroup: 'GridExample2',
            ptype: 'treeviewdragdrop',
            enableDrop: true
        },
        listeners: {
            drop: function(node, data, dropRec, dropPosition) {
            }
        }
    },

    enableDragDrop   : true,
    useArrows: true,
    rootVisible: false,

    title : 'All Users',

    initComponent: function() {

        this.callParent(arguments);
    }
});